//全局管理
global.hallSerMgr = {};

const hallReset = require('./hall/hallReset');

const game_config= require('../config/game_config');
const hallMessage = require('./hallMessage');
hallMessage.connectServer(game_config.hall_server.port);

const schedule = require('node-schedule');

//每天晚上23:59分定时重置数据
const job = schedule.scheduleJob('59 23 * * *', function(){
    console.log('The answer to life, the universe, and everything!');
    hallReset.resetDate();
});

